package at.fhooe.swa.client.domain;

import java.util.HashMap;
import java.util.Map;

public class SensorHistoryData implements ISensorHistoryData
{
	private ISensor sensor;
	private Map<String, Object> histroyData = new HashMap<String, Object>();

	public SensorHistoryData(ISensor sensor)
	{
		this.sensor = sensor;
	}
	
	
	
	@Override
	public ISensor getSensor()
	{
		return this.sensor;
	}

	@Override
	public Map<String, Object> getHistoryData()
	{
		return this.histroyData;
	}



	@Override
	public void addDataEntry(String dateTime, Object valueAtDate)
	{
		this.histroyData.put(dateTime, valueAtDate);
	}

}
